﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003F9 RID: 1017
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DressRelicParam : IMessage<DressRelicParam>, IMessage, IEquatable<DressRelicParam>, IDeepCloneable<DressRelicParam>, IBufferMessage
	{
		// Token: 0x17000D0C RID: 3340
		// (get) Token: 0x06002D8B RID: 11659 RVA: 0x0007D758 File Offset: 0x0007B958
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DressRelicParam> Parser
		{
			get
			{
				return DressRelicParam._parser;
			}
		}

		// Token: 0x17000D0D RID: 3341
		// (get) Token: 0x06002D8C RID: 11660 RVA: 0x0007D75F File Offset: 0x0007B95F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DressRelicParamReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000D0E RID: 3342
		// (get) Token: 0x06002D8D RID: 11661 RVA: 0x0007D771 File Offset: 0x0007B971
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DressRelicParam.Descriptor;
			}
		}

		// Token: 0x06002D8E RID: 11662 RVA: 0x0007D778 File Offset: 0x0007B978
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DressRelicParam()
		{
		}

		// Token: 0x06002D8F RID: 11663 RVA: 0x0007D780 File Offset: 0x0007B980
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DressRelicParam(DressRelicParam other) : this()
		{
			this.relicType_ = other.relicType_;
			this.relicUniqueId_ = other.relicUniqueId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002D90 RID: 11664 RVA: 0x0007D7B1 File Offset: 0x0007B9B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DressRelicParam Clone()
		{
			return new DressRelicParam(this);
		}

		// Token: 0x17000D0F RID: 3343
		// (get) Token: 0x06002D91 RID: 11665 RVA: 0x0007D7B9 File Offset: 0x0007B9B9
		// (set) Token: 0x06002D92 RID: 11666 RVA: 0x0007D7C1 File Offset: 0x0007B9C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RelicType
		{
			get
			{
				return this.relicType_;
			}
			set
			{
				this.relicType_ = value;
			}
		}

		// Token: 0x17000D10 RID: 3344
		// (get) Token: 0x06002D93 RID: 11667 RVA: 0x0007D7CA File Offset: 0x0007B9CA
		// (set) Token: 0x06002D94 RID: 11668 RVA: 0x0007D7D2 File Offset: 0x0007B9D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RelicUniqueId
		{
			get
			{
				return this.relicUniqueId_;
			}
			set
			{
				this.relicUniqueId_ = value;
			}
		}

		// Token: 0x06002D95 RID: 11669 RVA: 0x0007D7DB File Offset: 0x0007B9DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DressRelicParam);
		}

		// Token: 0x06002D96 RID: 11670 RVA: 0x0007D7E9 File Offset: 0x0007B9E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DressRelicParam other)
		{
			return other != null && (other == this || (this.RelicType == other.RelicType && this.RelicUniqueId == other.RelicUniqueId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002D97 RID: 11671 RVA: 0x0007D828 File Offset: 0x0007BA28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.RelicType != 0U)
			{
				num ^= this.RelicType.GetHashCode();
			}
			if (this.RelicUniqueId != 0U)
			{
				num ^= this.RelicUniqueId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002D98 RID: 11672 RVA: 0x0007D880 File Offset: 0x0007BA80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002D99 RID: 11673 RVA: 0x0007D888 File Offset: 0x0007BA88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002D9A RID: 11674 RVA: 0x0007D894 File Offset: 0x0007BA94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.RelicUniqueId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.RelicUniqueId);
			}
			if (this.RelicType != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.RelicType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002D9B RID: 11675 RVA: 0x0007D8F0 File Offset: 0x0007BAF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.RelicType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RelicType);
			}
			if (this.RelicUniqueId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RelicUniqueId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002D9C RID: 11676 RVA: 0x0007D948 File Offset: 0x0007BB48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DressRelicParam other)
		{
			if (other == null)
			{
				return;
			}
			if (other.RelicType != 0U)
			{
				this.RelicType = other.RelicType;
			}
			if (other.RelicUniqueId != 0U)
			{
				this.RelicUniqueId = other.RelicUniqueId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002D9D RID: 11677 RVA: 0x0007D998 File Offset: 0x0007BB98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002D9E RID: 11678 RVA: 0x0007D9A4 File Offset: 0x0007BBA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					if (num != 104U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.RelicType = input.ReadUInt32();
					}
				}
				else
				{
					this.RelicUniqueId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001204 RID: 4612
		private static readonly MessageParser<DressRelicParam> _parser = new MessageParser<DressRelicParam>(() => new DressRelicParam());

		// Token: 0x04001205 RID: 4613
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001206 RID: 4614
		public const int RelicTypeFieldNumber = 13;

		// Token: 0x04001207 RID: 4615
		private uint relicType_;

		// Token: 0x04001208 RID: 4616
		public const int RelicUniqueIdFieldNumber = 10;

		// Token: 0x04001209 RID: 4617
		private uint relicUniqueId_;
	}
}
